<template>
  <component :is="comp"></component>
</template>

<script lang="ts" setup>
import { useRouter } from "/@/lib/router";
import { computed } from "vue";

const router = useRouter();

const comp = computed(() => router.routes.find(
  (r:any) => r.path === router.current.value,
)?.component);

</script>
<style lang='scss' scoped>
</style>
